function createElement(tag, props, children) {
  console.log({
    tag,
    props,
    children
  })
}
const vDom1 = createElement('ul', {
  class: 'list',
  style: 'width: 300px; height: 300px; background-color: orange'
}, [
  createElement('li', {
    class: 'item',
    'data-index': 0
  }, [
    createElement('p', {
      class: 'text'
    }, [
      '第1个列表项'
    ])
  ]),
  createElement('li', {
    class: 'item',
    'data-index': 1
  }, [
    createElement('p', {
      class: 'text'
    }, [
      createElement('span', {
        class: 'title'
      }, [])
    ])
  ]),
  createElement('li', {
    class: 'item',
    'data-index': 2
  }, [
    '第3个列表项'
  ])
]);

